package dao;

import java.io.Serializable;
import java.util.List;

import javax.jdo.PersistenceManager;

public interface GenericDAO<E, Id extends Serializable> {
	
	public Class<E> getEntityClass();
	public E save(E entity);
	public void delete(E entity);
	public List<E> getAll();
	public E getById(Id id);
	public PersistenceManager getPersistenceManager();
	public void setPersistenceManager(PersistenceManager pm);
	
}
